#!/bin/sh
# ecs1上cacheListener中不要起自动任务
ip=118.31.164.90
date=`date '+%Y%m%d'`
tar cvf huajinbao_${date}.tar  --exclude='*.properties' --exclude='*.jar' --exclude='logback.xml' --exclude='*quartz.xml'  *
scp huajinbao_${date}.tar root@$ip:/home/application/huajinbao
ssh -l root $ip "cd /home/application/huajinbao;tar -xvf huajinbao_${date}.tar"
rm huajinbao_${date}.tar
#ssh -l root $ip "cd /home/tomcat/bin;sh  shutdown.sh;sh startup.sh"


